

#include <vector>
#include <string>
#include <iostream>
#include "./oj_serve/include/mysql.h"

using namespace std;
const string oj_questions = "oj_questions";
const string host = "127.0.0.1";
const string user = "root";
const string passwd = "";
// const string user = "root";
// const string passwd = "yuwenga.123A";
const string db = "oj";
const int port = 3306;

int main()
{
    MYSQL *my = mysql_init(NULL);
    if (nullptr == mysql_real_connect(my, host.c_str(), user.c_str(), passwd.c_str(), db.c_str(), port, NULL, 0))
    {
        cout<<"失败"<<endl;
    }

    mysql_close(my);

    return 0;
}
